package com.hp.guard.activity;

import com.hp.guard.R;
import com.hp.guard.R.layout;
import com.hp.guard.biz.LoginHelper;
import com.hp.guard.utils.Utils;

import android.os.Bundle;
import android.app.Activity;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.content.pm.PackageManager.NameNotFoundException;
import android.util.Log;
import android.view.Menu;
import android.widget.TextView;

public class SplashActivity extends Activity {

	private static final String TAG = "SplashActivity";
	private TextView tvVersion;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_splash);
		try {
			
			String currentVersion=Utils.getVersion(this);
			tvVersion=(TextView) findViewById(R.id.tv_version);
			tvVersion.setText("版本号"+currentVersion);
			LoginHelper.getInstance(this);
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
	


	
}
